﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BI.CF.IDAL;
using BI.CF.Model;
using BI.CF.PageList;
using BI.CF.Factory;
using System.Data.SqlClient;

namespace BI.CF.BLL
{
   public class Record_BLL
    {
       static CF_Factory sql = CF_Factory.DataBaseType();
       Record_IDAL IDal = sql.IRecord_Server();
        /// <summary>
        /// 抵押资产审核显示
        /// </summary>
        /// <param name="UserName"></param>
        /// <param name="CrefiticationTimeMax"></param>
        /// <param name="CrefiticationTimeMin"></param>
        /// <param name="IdCard"></param>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <returns></returns>
        public PageList.Pager<Records> GetRecordShow(string UserName, int PageIndex, int PageSize)
        {
            return IDal.GetRecordShow(UserName, PageIndex, PageSize);
        }
        /// <summary>
        /// 添加抵押资产认证审核信息
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public bool Record_ADD(RecordModel m)
        {
            return IDal.Record_ADD(m);
        }
        /// <summary>
        /// 删除抵押资产审核信息
        /// </summary>
        /// <returns></returns>
        public bool Record_Dele(int id)
        {
            return IDal.Record_Dele(id);
        }
        /// <summary>
        /// 修改抵押资产审核信息
        /// </summary>
        /// <returns></returns>
        public bool Record_Upt(Records m)
        {
            return IDal.Record_Upt(m);
        }
        /// <summary>
        /// 根据编号查询状态
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public Records Record_ID(int ID)
        {
            return IDal.Record_ID(ID);
        }
        #region 添加借款信息and 资产抵押
        /// <summary>
        /// 添加借款信息and 资产抵押
        /// </summary>
        /// <returns></returns>
        public bool Memloand_LeiADD(RecordModel m)
        {
            return IDal.Memloand_LeiADD(m);
        }
        #endregion
    }
}
